package cn.tedu.springbootdemo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AdminAddNewDTO implements Serializable {

    @ApiModelProperty(value = "用户名",example = "admin001")
    @NotNull(message = "增加管理员失败,必须提交用户名!")
    private String username;

    @ApiModelProperty(value = "密码",example = "123456")
    @NotNull(message = "增加管理员失败,必须提交密码!")
    private String password;

    @ApiModelProperty(value = "昵称",example = "管理员1号")
    @NotNull(message = "增加管理员失败,必须提交昵称!")
    private String nickname;
}
